Skip to content

feat(studio): close RFC-0040's Studio gaps (comments, overview, editor URL) - #91

Merged
Madraka merged 1 commit into
mainfrom
feat/collections-studio-gaps
Oct 22, 2026
Merged

Madraka merged 1 commit into
mainfrom
feat/collections-studio-gaps

Conversation

@Madraka

@Madraka Madraka commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Closes the three places where stage 1 of RFC-0040 (#84–#87) differed from §4 "Studio".

1. Comments on the collection settings screen

  • New CollectionCommentsSection: an "Accept comments" switch and "Close threads after".
  • It saves to comment_settings with its rev, only collections, keeping the other collections as saved, so a rollback never reopens comments (RFC-0007 §4.5). A 409 offers "Load latest".
  • Permissions match the Comments screen. When comments are off for the whole site, a banner says so and links to that setting.

2. Overview lists across collections

  • "Recent content" (RecentContentCard) makes one entries.list request across collections and shows the newest 5, with Title, Collection and Status.
  • The Articles count comes from the registry, and "View all" goes to Collections.

3. Editor URL

  • New route: /sites/$siteId/collections/$collection/$entryId.
  • /articles/$entryId redirects to posts, and the editor then replaces the address with the entry's own collection. Bookmarks keep working.
  • Every link uses entryHref / entryRoute (lib/entry-href.ts).
  • The sidebar marks the collection active on its list, settings and editors, with an exact or / prefix match.
  • Command palette: one "Go to {name}" command per collection.

i18n: new keys in English; drafts for the other 18 languages from the translate skill, awaiting review.

Checks

  • Studio tests: 1215/1215, including 7 new tests in collections-studio.test.tsx.
  • Typecheck, design lint (367 files) and size check pass.
  • Initial load: 388.3 kB gzip (+0.7 kB; budget 420).
  • Screenshots at 1440 and 390 px: no console errors, no sideways scroll.

Trade-off: links that only know an entry's id (schedules, analytics, releases, assets) open under posts, and the address then moves to the right collection.

🤖 Generated with Claude Code

…r URL)

- Collection settings get a Comments section (accept comments, close
  threads after). It saves to comment_settings with its rev, like the
  Comments screen, and keeps nothing on the collection (RFC-0007 §4.5).
- Overview: "Recent content" lists the newest entries of every
  collection in one request, with a Collection column.
- The editor moves to /collections/$collection/$entryId. /articles/$id
  redirects there, and the editor corrects the address to the entry's
  own collection once it loads. Every link goes through entryHref /
  entryRoute; the sidebar marks the collection active on its editors.
- Command palette: one "Go to {name}" per collection.
- i18n: new keys in en, drafts for the other languages (unreviewed).

Studio 1215/1215, design lint, size and budget (388.3 kB gzip) pass;
screenshots at 1440 and 390 px clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
@Madraka
Madraka merged commit 6e7eae7 into main Oct 22, 2026
4 checks passed
@Madraka
Madraka deleted the feat/collections-studio-gaps branch October 22, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant